#include "Mark.h"


//===========================================================================//
// Name: setMark
// Parameters: A reference to object of type <enum Mark>.
// Purpose: Restore the starting mark to X.
// Pre-condition(s): A non-EMPTY Mark object.
// Post-condition(s): m is either X_MARK or O_MARK.
//===========================================================================//
void setMark(Mark& m)
{
    m = Mark::X_MARK;
}


//===========================================================================//
// Name: changeMark
// Parameters: A reference to object of type <enum Mark>.
// Purpose: Change the value of m.
// Pre-condition(s): A non-EMPTY Mark object.
// Post-condition(s): m is either X_MARK or O_MARK.
//===========================================================================//
void changeMark(Mark& m)
{
    (m == Mark::X_MARK) ? (m = Mark::O_MARK) : (m = Mark::X_MARK);
}
